<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class Appliction_Model_Post extends Myself_Model_DB{
    public function __construct()
    {
        parent::__construct();
        $this->_name = 'post';
        $this->_primary = 'id';
    }
    /**
     * 获取所有博文
     * @return type 
     */
    public function getPost(){
        return $this->fetchAll()->toArray();
    }
    
    public function getTotal() {
        ;
    }
    
    public function getDataByPrimary($table, $where) {
        ;
    }
    
}
?>
